<div class="tabs-container">
    <ul class="nav nav-tabs">

        <li class="active"><a href="#tab_1" data-toggle="tab" aria-expanded="true">基本信息</a></li>
        <li class=""><a href="#tab_2" data-toggle="tab" aria-expanded="false">商品清单</a></li>
        {{--<li class=""><a href="#tab_9" data-toggle="tab" aria-expanded="false">优惠信息</a></li>--}}{{--
        --}}{{--<li class=""><a href="#tab_10" data-toggle="tab" aria-expanded="false">积分信息</a></li>--}}{{--
        <li class=""><a href="#tab_8" data-toggle="tab" aria-expanded="false">订单评论</a></li>
        <li class=""><a href="#tab_7" data-toggle="tab" aria-expanded="false">用户留言</a></li>--}}
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="tab_1">
            <div class="panel-body">
                @include('member-backend::auth.includes.user_edit_base')
            </div>

        </div>

        <div class="tab-pane" id="tab_2">
            <div class="panel-body">

                @include('member-backend::auth.includes.activity_goods')

            </div>
        </div>
    </div>

</div>
<script>
    var $table = $('#tab_1');


    $('#tab_2').on('click','.edit',function () {
        var urls = $(this).data('url');
        var type = $(this).data('type');
        var str = '';

        if (type==1){
            str = '您真的要禁用该商品吗?'
        }else{
            str = '您真的要启用该商品吗?'
        }

        swal({
            title: str,
            text: "",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "确认",
            cancelButtonText: '取消',
            closeOnConfirm: false
        }, function () {
            $.post(urls, function (res) {
                if (res.status) {
                    swal("操作成功!", "", "success", function () {

                    });
                    location.reload();
                } else {
                    swal("操作失败!", "", "error");
                }

            });
        });
    });


    $table.on('click', '.apply', function () {

        var url = $(this).data('url')/* + "?_token=" + _token*/;

        swal({
            title: "您真的要通过审核吗?",
            text: "",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "确认",
            cancelButtonText: '取消',
            closeOnConfirm: false
        }, function () {
            $.post(url, function (res) {
                if (res.status) {
                    swal("操作成功!", "", "success", function () {

                    });
                    location.reload();
                } else {
                    swal("操作失败!", "", "error");
                }

            });
        });
    });


    $table.on('click', '.dis', function () {

        var url = $(this).data('url')/* + "?_token=" + _token*/;

        swal({
            title: "您真的要拒绝通过吗?",
            text: "",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "确认",
            cancelButtonText: '取消',
            closeOnConfirm: false
        }, function () {
            $.post(url, function (res) {
                if (res.status) {
                    swal("操作成功!", "", "success", function () {

                    });
                    location.reload();
                } else {
                    swal("操作失败!", "", "error");
                }

            });
        });
    });

</script>

<div id="modal" class="modal inmodal fade"></div>

{!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.js') !!}
{!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.zh-CN.js') !!}





